package com.ruoyi.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

import java.util.List;

/**
 * 【请填写功能名称】对象 adv_members
 *
 * @author ruoyi
 * @date 2024-05-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class AdvMembers extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 用户ID */
    @Excel(name = "会员编号", cellType = Excel.ColumnType.NUMERIC, prompt = "用户编号")
    private Long advMembersId;


    @Excel(name = "会员昵称")
    private String memberName;

    private String pmemberName;
    @Excel(name = "会员账号")
    private String memberAccount;


    private String parentMemberAccount;


    @Excel(name = "父级会员")
    private String parentAccount;


    @Excel(name = "会员状态")
    private String memberStatus;


    @Excel(name = "是否是主播")
    //private Long isBroadcast;
    private String  isBroadcast;

    private Long busAreasId;

    @Excel(name = "会员地址")
    private String address;

    private String memberImg;

    @Excel(name = "微信OPENID")
    private String weOpenid;

    @Excel(name = "真实姓名")
    private String memberFullname;

    @Excel(name = "会员手机号")
    private String memberTele;

    @Excel(name = "会员密码")
    private String memberPwd;

    @Excel(name = "模拟字符权限")
    private String paySpecmode; // 1 有   0 没有

    @Excel(name = "微信支付商户号")
    private String payNo;

    @Excel(name = "是否是营销会员")
    private String isSaler;

    @Excel(name = "会员加入时间")
    private String joinDate;

    @Excel(name = "佣金比例")
    private Integer payRate;

    @Excel(name = "修改之前的佣金比例")
    private Integer lastRateValue;

    @Excel(name = "备注")
    private String remark;

    //会员订单表
    private String ordersAmount;

    //直播表
    private String broadUrl;
    private String title;

    // 二级列表需要的数据
    @Transient
    private List<AdvMembers> children;

    public AdvMembers(Long advMembersId, String memberName, String memberAccount, String parentAccount, String memberStatus, String isBroadcast,
                      Long busAreasId, String address, String memberImg, String weOpenid, String memberFullname, String memberTele, String memberPwd, String payNo,
                      String isSaler,String joinDate) {
        this.advMembersId = advMembersId;
        this.memberName = memberName;
        this.memberAccount = memberAccount;
        this.parentAccount = parentAccount;
        this.memberStatus = memberStatus;
        this.isBroadcast = isBroadcast;
        this.busAreasId = busAreasId;
        this.address = address;
        this.memberImg = memberImg;
        this.weOpenid = weOpenid;
        this.memberFullname = memberFullname;
        this.memberTele = memberTele;
        this.memberPwd = memberPwd;
        this.payNo = payNo;
        this.isSaler = isSaler;
        this.joinDate = joinDate;
    }
}
